package com.example.demo.service.app.impl;

import com.example.demo.entity.app.AppUserRole;
import com.example.demo.mapper.app.AppUserRoleMapper;
import com.example.demo.service.app.AppUserRoleService;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author xkx
 * @date 2019/1/7
 */
@Service
public class AppUserRoleServiceImpl implements AppUserRoleService {

  @Autowired
  private AppUserRoleMapper appUserRoleMapper;

  @Override
  public List<AppUserRole> selectAppUserRoleById(Long id) {
    AppUserRole userCondi = AppUserRole.builder().userId(id).build();
    return this.appUserRoleMapper.select(userCondi);
  }
}
